package cn.tedu.springdemo.day05;
import java.util.List;
import java.util.Set;
import java.util.Map;
import java.util.Properties;
/**
 * DI学习依赖注入：创建bean时候给属性赋值（所谓的注入）
 */
public class Demo {
    private String name;
    private int age;
    private List<String> List;
    private Set<String>set;
    private Map<String,Object> map;
    private Properties properties;//JDBC--xml解析配置文件{key,value}
//私有属性-----引用类型对象---作为属性
    private Pig pig;

    @Override
    public String toString() {
        return "Demo{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", List=" + List +
                ", set=" + set +
                ", map=" + map +
                ", properties=" + properties +
                ", pig=" + pig +
                '}';
    }

    public void setPig(Pig pig) {
        this.pig = pig;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public java.util.List<String> getList() {
        return List;
    }

    public void setList(java.util.List<String> list) {
        List = list;
    }

    public Set<String> getSet() {
        return set;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public Map<String, Object> getMap() {
        return map;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }

    public Properties getProperties() {
        return properties;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }


}
